﻿@model IEnumerable<IEstate.Core.Models.Estate>

@{
    ViewBag.Title = "_Search";
}

<h2>_Search</h2>

@if (ViewBag.Check == false)
{
    <p>Error ocured</p>
    @Html.ActionLink("Go back", "Search")
}

@if (ViewBag.Check == true) 
{
    foreach(var p in Model)
    {
        <div>
            @Html.LabelFor(i => p.Street)
            @Html.DisplayFor(i => p.Street)
        </div>

        <div>
            @Html.LabelFor(i => p.Price)
            @Html.DisplayFor(i => p.Price)
        </div>
    }
}

